<#import "/freemarker/modeltype.ftl" as mt>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<a class="btn btn-danger"><i class="icon-lock"></i> 屏蔽</a>
		<a class="btn btn-warning"><i class="icon-unlock"></i> 解除屏蔽</a>
		<a class="btn btn-success"><i class="icon-book"></i> 详情</a>
	</div>
</div>
<table class="table table-bordered animate2 fadeInUp">
	<thead>
	<tr>
		<th>单据编号</th>
		<th>出库仓库</th>
		<th>入库仓库</th>
		<th>是否确认</th>
		<th>创建人</th>
		<th>创建时间</th>
		<th>是否屏蔽</th>
		<th style="width: 80px;text-align: center;">操作</th>
	</tr>
	</thead>
	<tbody>
	<#list pageBean.resultList as inv>
	<tr class="ui-widget-content">
		<td>${inv.dn}</td>
		<td>${inv.odn}</td>
		<td>${inv.idn}</td>
		<td><#if inv.cvc??>已确认<#else>未确认</#if></td>
		<td>${inv.cn}</td>
		<td>${inv.ct?string('yyyy-MM-dd HH:mm')}</td>
		<td><@mt.YesOrNo value=((inv.deleted)!false) r=false /></td>
		<td style="text-align: center;">
			<div id="tttttt" class="btn-group">
				<#if !inv.deleted>
				<a href="javascript:;" onclick="javascript: shield_invAllocate('${inv.code}', '${inv.name}');" data-toggle="tooltip" title="屏蔽" class="btn btn-xs btn-danger"><i class="icon-lock"></i></a>
				<#else>
				<a href="javascript:;" onclick="javascript: unshield_invAllocate('${inv.code}', '${inv.name}');" data-toggle="tooltip" title="解除屏蔽" class="btn btn-xs btn-warning"><i class="icon-unlock"></i></a>
				</#if>
				<a href="javascript:;" onclick="javascript: showSerial_invAllocate('${inv.code}');return false;" data-toggle="tooltip" class="btn btn-xs btn-success"><i class="icon-book"></i></a>
			</div>
		</td>
	</tr>
	</#list>
	</tbody>
</table>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'query_invAllocate'/>